-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: no setters for enums in interfaces for java when allowInheritance is used #2068
feat!: no setters for enums in interfaces for java when allowInheritance is used #2068
Conversation
✅ Deploy Preview for modelina canceled.
|
@jonaslagoni, please check. Can we instead check if the classes that implement interfaces have const set in them, or is this the only way? |
🎉 This PR is included in version 4.0.0-next.54 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@@ -10,6 +10,7 @@ import { FormatHelpers } from '../../../helpers'; | |||
import { JavaOptions } from '../JavaGenerator'; | |||
import { ClassPresetType } from '../JavaPreset'; | |||
import { unionIncludesBuiltInTypes } from '../JavaConstrainer'; | |||
import { isEnum } from '../../csharp/Constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think it's time to move this to general 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes 😄
🎉 This issue has been resolved in version 4.0.0-next.60 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
In Java, when a class implements an interface, it must implement all the methods of that interface. Because of that, Modelina now doesn't render the setter for enums in interfaces when
allowInheritance
is true because the classes that implement the interface might use a constant value.Related Issue
Checklist
npm run lint
).npm run test
).Additional Notes